<?php


namespace app\index\controller;


use app\admin\service\RbacService;
use app\common\controller\CommonController;
use app\common\model\PackageCompanyModel;
use app\common\service\Lang;

class PackageCompanyController extends CommonController
{
    public function getPackageCompanyList()
    {
        $models      = (new PackageCompanyModel())->getPackageCompanyList();
        if ($models->isEmpty()) {
            $res = [];
        }
        else {
            $res = $models->toArray();
        }
        return retJson(Lang::GETDone, $res);
    }
}